
import request from "./request";
// import qs from "qs";

export const getVerifyApi = phone => request.post("/sendSMS", `phone=${phone}`)

export const getLoginApi = data => request.post("/phoneRegin", `verifyCode=${data.code}&phone=${data.phone}`)

export const getuserApi = () => request.get("/shop/userProfiles")

// export const WeixinLoginApi = (params) => request.post(`/wechatUsers/PCLogin`, qs.stringify(params));
export const WeixinLoginApi = code => request.post("/wechatUsers/PCLogin", `code=${code}`)